//
//  ViewController.m
//  项目文件
//
//  Created by song on 15/1/20.
//  Copyright (c) 2015年 song. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()
- (IBAction)btnclick:(id)sender;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)btnclick:(id)sender {
    
    UIApplication *app =[UIApplication sharedApplication];
//    app.applicationIconBadgeNumber =20;
    
    app.networkActivityIndicatorVisible =YES;
    
    [app openURL:[NSURL URLWithString:@"http://www.baidu.com"]];
    
}
@end
